home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2005 Utilities / CHIP Utilities 2005.7z / CHIP Utilities 2005.iso / docs / freedos / www.fcpa.com / includes / copyright.js next >
Encoding:
JavaScript  |  2004-01-21  |  1.7 KB  |  63 lines

  1. /*
  2.       Copyright (c) 2001 Moonstone Interactive, Inc.
  3.       All Rights Reserved. No portion of this file, including but
  4.       not limited to any associated code, documents or images, may be
  5.       copied, retransmitted, reposted, duplicated or otherwise
  6.       used without the express written permission of Moonstone Interactive, Inc.
  7.  
  8. */        
  9.  
  10. function include_copyright01(startyear) {
  11.     var    blob="";
  12.     var msistartyear = 1996;
  13.     var    today=new Date();
  14.     var    thisyear = get_full_year(today);
  15.     if (startyear < thisyear && startyear >= msistartyear) {
  16.         blob += startyear + " - ";
  17.     }
  18.     blob += thisyear;
  19.     blob = "<img src='/img/spacer.gif' alt='' border='0' width='3' height='1' align='right'><font face='Arial, Helvetica' size='1'>All Rights Reserved, Copyright © FUJITSU " + blob + "</font><br><br>";
  20.     return blob;
  21. }
  22.  
  23. /* 
  24. ** subroutine: get_full_year
  25. ** param1: d -> date.  any date object.
  26. */
  27. function get_full_year(d) { // d is a date object
  28.     yr = d.getYear();
  29.     if (yr < 1000) {
  30.          yr+=1900;
  31.     }
  32.     return yr;
  33. }
  34.  
  35.  
  36. /* copyright script for subpages */
  37.  
  38.  
  39. function include_copyright_sub(startyear) {
  40.     var    blob="";
  41.     var msistartyear = 1996;
  42.     var    today=new Date();
  43.     var    thisyear = get_full_year(today);
  44.     if (startyear < thisyear && startyear >= msistartyear) {
  45.         blob += startyear + " - ";
  46.     }
  47.     blob += thisyear;
  48.     blob = "<img src='../../../img/spacer.gif' alt='' border='0' width='3' height='1' align='right'><font face='Arial, Helvetica' size='1'>All Rights Reserved, Copyright © FUJITSU " + blob + "</font><br><br>";
  49.     return blob;
  50. }
  51.  
  52. /* 
  53. ** subroutine: get_full_year
  54. ** param1: d -> date.  any date object.
  55. */
  56. function get_full_year(d) { // d is a date object
  57.     yr = d.getYear();
  58.     if (yr < 1000) {
  59.          yr+=1900;
  60.     }
  61.     return yr;
  62. }
  63.